Multidimensional discrete convolution